<include file="Public/header" title="智能引导"/>
<include file="Public/header_back" backfun="prevPage"/>
<script>
var pages = ['sele_type','sele_ctype','sele_package','preview_order'];
var cur_page = pages[0];
var datas = new Object();
var setCurPage = function(pagename){
	cur_page = pagename;
}
var getPrevPage = function(){
	for(var i=0;i<pages.length;i++){
		if(pages[i] == cur_page){
			if(i == 0){
				return '';
			}else{
				return pages[i-1];
			}
		}
	}
}
var getNextPage = function(){
	for(var i=0;i<pages.length;i++){
		if(pages[i] == cur_page){
			if(i == (pages.length-1)){
				return '';
			}else{
				return pages[i+1];
			}
		}
	}
}
var prevPage = function(){
	var prev = getPrevPage();
	if(prev == ''){
		history.back(-1);
	}else{
		$('#'+cur_page).hide();
		$('#'+prev).show();
		setCurPage(prev);
	}
}
var nextPage = function(){
	var next = getNextPage();
	if(next == ''){
		return false;
	}else{
		$('#'+cur_page).hide();
		$('#'+next).show();
		setCurPage(next);
	}
}
</script>
    <div class="type-wrap" style="overflow:hidden;">
        <div class="type-body">
            <include file="Guide/chgform_sele_type"/>
            <include file="Guide/chgform_sele_ctype"/>
			<include file="Guide/chgform_sele_package"/>
			<include file="Guide/preview_order"/>
        </div>
    </div>
<include file="Public/footer"/>


